CCFLAGS = 
LDFLAGS = 
RMFLAGS = -f

BUILDDIR = build

XMLINT = Attribut.h Noeud.h Balise.h Texte.h
DTDINT = DtdComposite.h DtdDeclaration.h DtdElement.h DtdNode.h DtdTree.h
XSLINT = XSLStylesheet.h XSLEngine.h

INT = main.h $(XMLINT) $(DTDINT) $(XSLINT) testSamples.h
REAL = $(INT:.h=cpp)
OBJ = $(INT:.h=.o)

vpath
vpath %h ./XML ./DTD/tree ./XSL
vpath %cpp ./XML ./DTD/tree ./XSL
vpath %o ./XML ./DTD/tree ./XSL

EXE = XMLTest
EFFACE = clean
RM = rm
ECHO = echo
COMP = g++
EDL = g++
LIBS = -lboost_regex
LIBTP = 


$(EXE):$(OBJ)
	$(ECHO) Edl de $(EXE)
	$(EDL) $(LDFLAGS) -o $(EXE) $(OBJ) $(LIBTP) $(LIBS)

$(OBJ): %.o:%.cpp
	$(ECHO) compil de $<
	$(COMP) $(CCFLAGS) -c $<

$(EFFACE):
	$(RM) $(RMFLAGS) $(EXE) $(OBJ) core
